package main;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

import element.ElementOfPage;

import business.Business;


public class MainTestSuitBusiness {
	private final int DELIVERY = 1;
	private final int CANNABIS_CLUB = 2;
	private final int CANNABIS_DOCTOR = 3;
	private final int HYDROPONIC= 4;
	private final int LAWYER = 5;
	private final int SMOKE_SHOP = 6;
	
	private WebDriver driver;
	
	@Before
	public void createDriver(){
		System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
		driver = new ChromeDriver();
		System.out.println("Chrome driver successfully created!");
	}
	
	@Test
	/***
	 * 
	 */
	public void startTestSuit(){
		driver.get("http://test:test123@dev.weedits.com");
		ElementOfPage elementOfPage = new ElementOfPage();
		Business business = new Business(driver);
		business.addBusiness("anna", "123456", DELIVERY, elementOfPage,null,19,13,"123","123","1234","90029","trinklera 9");
	}
	
	@After
	public void closedriver(){
		driver.quit();
		System.out.println("Chrome driver successfully closed!");
	}
}
